#ifndef TAGREADERTHREAD_H
#define TAGREADERTHREAD_H

#include <QThread>

class AudioFile;
class PlaylistEntry;

class TagReaderThread : public QThread
{
    Q_OBJECT
    Q_DISABLE_COPY(TagReaderThread)

public:
    explicit TagReaderThread(QObject *parent = 0);

    bool readTags(const QList<AudioFile*>& i_files);
    bool refreshEntries(const QList<PlaylistEntry*>& i_entries);

signals:
    void progressChanged(int, int);

protected:
    virtual void run();

private:
    QList<AudioFile*> m_files;
    QList<PlaylistEntry*> m_entries;
};

#endif // TAGREADERTHREAD_H
